<template>
  <div class="params-container" v-if="Object.keys(itemParams).length !== 0">
    <div class="gtop">
      <div v-for="item of itemParams.rule.tables[0]">
        <van-grid :column-num="item.length">
          <van-grid-item v-for="(param,i) of item" :text="param"/>
        </van-grid>
      </div>
    </div>

    <div>
      <div v-for="item of itemParams.info.set">
        <van-grid :column-num="2">
          <van-grid-item :text="item.key"/>
          <van-grid-item :text="item.value"/>
        </van-grid>
      </div>
    </div>

  </div>
</template>

<script>
  export default {
    name: "DetailItemParams",
    props: {
      itemParams: {
        type: Object,
        default() {
          return {};
        }
      }
    }
  }
</script>

<style scoped>

  .params-container {
    margin-bottom: 30px;
  }

  .gtop {
    margin-bottom: 30px;
  }
</style>
